import ajax from "./ajax.js"

ajax({
    url:"http://websong.wang:4000/rl?page=1&number=10",
    method:"GET"
}).then(res =>{
    console.log(res, "许运虎");
    
    // 操作dom
    var ul = document.querySelector("ul")
    res.forEach(item =>{
        var li = document.createElement("li")
        var name = document.childNodes(item.goods_name)
        li.appendChild(name)
        ul.appendChild(li)
    })
})